//
//  UserBl.m
//  NiuNiuPacking
//
//  Created by Bass on 14-10-17.
//  Copyright (c) 2014年 Reseek. All rights reserved.
//

#import "UserBl.h"

@implementation UserBl

//新增User方法
-(int) add:(User*)user {
    UserDao *dao = [UserDao sharedManager];
    return [dao add:user];
}

//删除User方法
-(int) removeAll {
    UserDao *dao = [UserDao sharedManager];
    return [dao removeAll];
}

//修改User方法
-(int) update:(User*)user {
    UserDao *dao = [UserDao sharedManager];
    return [dao update:user];
}

//按照主键查询数据方法
-(User*) findById:(int)id {
    UserDao *dao = [UserDao sharedManager];
    return [dao findById:id];
}

@end
